function validateResultMes() {
	var resultCode = document.getElementsByName("resultCode")[0].value;
	var resultInfo = document.getElementsByName("resultInfo")[0].value;

	if (resultCode != null && resultInfo != null) {
		if (resultCode.length >= 4 && resultInfo.length >= 4) {
			return 0;
		} else {
			return 1;
		}
	}	
	
	return 2;
}

function submitEditResultMes() {
	var result = validateResultMes();
	if (result == 0) {
		document.forms("editResultForm").submit();
	} else if(result == 1) {
		window.alert("结果码或结果信息过于简单，请更换！");
		return;
	} else  if (result == 2) {
		window.alert("信息不完整，请完善！");
		return;
	}
}